#include "ros/ros.h"
#include "turtlesim/Pose.h"


void callback(const turtlesim::Pose::ConstPtr &pose)
{
    ROS_INFO("pose of turtle : (%.2f, %.2f) heading: (%.2f) line vel: %.2f angle vel: %.2f",
    pose->x, pose->y, pose->theta, pose->linear_velocity, pose->angular_velocity);
}
int main(int argc, char **argv)
{
    setlocale(LC_ALL,"");
    ros::init(argc,argv,"sub_pose");
    ros::NodeHandle n;
    ros::Subscriber sub = n.subscribe("/turtle1/pose", 10, callback);
    ros::spin();
    return 0;
}